<template>
  <div>
     <h3>选择你喜欢的栏目</h3>
    <ul>
      <li v-for="(item,i) in arr" :key="i" :style="{listStyle,float:'left'}">
        <input type="checkbox" :value="item" />{{ item }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr:["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      listStyle:'none'
    }
  },
}
</script>

<style>
  div h3 {
    margin-left: 50px;
  }
</style>
